import qs from 'qs'

import {
	request
} from './request'



export function listDepartments(obj) {
	return request({
		url: "userType/listDepartmentOrShop",
		method: "post",
		data: qs.stringify(obj)
	});
}


// 获取商品返利  列表
export function getProductRebate(obj) {
	return request({
		url: "product/getProductRebate",
		method: "post",
		data: qs.stringify(obj)
	});
}

// 添加商品返利
export function addProductRebate(obj) {
	return request({
		url: "product/addProductRebate",
		method: "post",
		data: qs.stringify(obj)
	});
}
// 删除商品返利
export function dleProductRebate(obj) {
	return request({
		url: "product/dleProductRebate",
		method: "post",
		data: qs.stringify(obj)
	});
}